#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main(void) {
	int n;
	scanf("%d", &n);
	while (n--) {
		char str[1000];
		scanf("%s", str);
		for (int i = 0; str[i] != '\n'; i++) {
			if (str[i] == 'z') {
				str[i] = 'a';
			}
			else if (str[i] == 'Z') {
				str[i] = 'A';
			}
			else if (str[i] >= 'a' && str[i] <= 'y' || str[i] >= 'A' && str[i] <= 'Y') {
				str[i]++;
			}
		}
		printf("%s", str);
	}
	return 0;
}